<extend name="Public/baseConf"/>
<block name="style">
</block>
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-4">
	        <h2>网站设置</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li class="active">
	                <strong>网站设置</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-6">
	    </div>
	    <div class="col-lg-2">
            <div class="title-action">
	 			<empty name="list">
					<button class="btn btn-primary disabled" type="submit" target-form="form-horizontal">
						<i class="fa fa-check"></i>保存</button>
				<else/>
					<button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal">
						<i class="fa fa-check"></i>保存</button>
				</empty>
		        <!-- <a class="btn btn-warning" type="submit" onclick="onclick="javascript:history.back(-1);return false;""><i class="fa fa-reply"></i>返回</a> -->
            </div>
        </div>
	</div> 
</block>
<block name="body">
	<div class="row">
	    <div class="col-lg-12">
			<div class="tabs-container">
				<ul class="nav nav-tabs">
				<volist name="Think.config.CONFIG_GROUP_LIST" id="group">
					<li <eq name="id" value="$key">class="active"</eq>><a href="{:U('?id='.$key)}"><i class="green fa fa-user  bigger-110"></i>{$group}配置
					</a></li>
				</volist>
				</ul> 
				<div class="tab-content">
					<div class="tab-pane active">
						<div class="panel-body">
							<form action="{:U('save')}" method="post" class="form-horizontal">
								<volist name="list" id="config">
									<div class="form-group"><!-- <small>（{$config.remark}）</small> -->
										<label class="col-sm-2 control-label no-padding-right">{$config.title} </label>
										<div class="col-sm-10">
										<switch name="config.type">
											<case value="0">
												<input type="text" class="form-control" name="config[{$config.name}]" value="{$config.value}">
											</case>
											<case value="1">
												<input type="text" class="form-control" name="config[{$config.name}]" value="{$config.value}">
											</case>
											<case value="2">
												<textarea class="form-control"  name="config[{$config.name}]">{$config.value}</textarea>
											</case>
											<case value="3">
												<textarea class="form-control" name="config[{$config.name}]">{$config.value}</textarea>
											</case>
											<case value="4">
												<select name="config[{$config.name}]" class="form-control">
													<volist name=":parse_config_attr($config['extra'])" id="vo">
														<option value="{$key}" <eq name="config.value" value="$key">selected</eq>>{$vo}</option>
													</volist>
												</select>
											</case>
										</switch> 
										</div>
									</div>
									<div class="hr-line-dashed"></div>
								</volist> 
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div><!-- /.page-content -->
</block>